﻿using TaoSH.AppCode;
using TaoSH.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TaoSH.View
{
    public partial class SPLB : FormUControl
    {




        #region//添加页面

        public override void initAddForm(string strFormCode)
        {

        }




        /// <summary>
        /// 送审表单
        /// </summary>
        /// <param name="FormID">表单号</param>
        /// <param name="intProcessInstanceID">流程号</param>
        /// <returns></returns>
        public override bool SaveForm(int intFormID, string strActionType)
        {
            PT_Pro_Category MODEL = new PT_Pro_Category();
            MODEL = new PT_Pro_CategoryB().GetEntity(d => d.ID == intFormID);
            MODEL.MenuTxt = conLBName.Text;
            MODEL.Sort = int.Parse(conLBOrder.Text);
            MODEL.TopID = 0;//没有父菜单

            return new PT_Pro_CategoryB().Update(MODEL);
        }
        #endregion

        #region//查看页面
        /// <summary>
        /// 初始化View页面
        /// </summary>
        /// <param name="intFormID">表单号</param>
        public override void initMangerForm(int intFormID)
        {
            PT_Pro_Category MODEL = new PT_Pro_Category();
            MODEL = new PT_Pro_CategoryB().GetEntity(d => d.ID == intFormID);
            conLBOrder.Text = MODEL.Sort.ToString();
            conLBName.Text = MODEL.MenuTxt;
        }

        #endregion





    }
}